package d0427.wordgame;

public class Level {

	// 各级别号
	private int levelNo;
	// 输出文字内容
	private String words = "Hello world";
	// 各级别一次输出字符串的长度
	private int strLength;
	// 各级别输出字符串的次数
	private int strTime;
	//各级别闯关的时间限制
	private int timeLimit;
	// 各级别正确输入一次的得分
	private int perScore;
	
	public Level(int levelNo, String words, int timeLimit, int perScore) {
		this.levelNo=levelNo;
		this.words = words;
		this.timeLimit = timeLimit;
		this.perScore = perScore;
		this.strLength = words.length(); // 返回字符串长度
	}
	
	public int getLevelNo() {
		return levelNo;
	}
	public void setLevelNo(int levelNo) {
		this.levelNo = levelNo;
	}
	public String getWords() {
		return words;
	}
	public void setWords(String words) {
		this.words = words;
	}
	public int getStrLength() {
		return strLength;
	}
	public void setStrLength(int strLength) {
		this.strLength = strLength;
	}
	public int getStrTime() {
		return strTime;
	}
	public void setStrTime(int strTime) {
		this.strTime = strTime;
	}
	public int getTimeLimit() {
		return timeLimit;
	}
	public void setTimeLimit(int timeLimit) {
		this.timeLimit = timeLimit;
	}
	public int getPerScore() {
		return perScore;
	}
	public void setPerScore(int perScore) {
		this.perScore = perScore;
	}
	
}
